﻿using System;

namespace IssueIT.Core.Domain.Model
{
	public class PointInTime : IEntity
	{
		public PointInTime(string name, DateTime dueDate)
		{
			Name = name;
			DueDate = dueDate;
			Status = PointInTimeStatus.Unknown;
		}

		public Guid Id { get; set; }
		public string Name { get; private set; }
		public DateTime DueDate { get; private set; }
		public PointInTimeStatus Status { get; private set; }
		//hmmmm: list of Issues??

		public void Delete()
		{
			Status = PointInTimeStatus.Deleted;
		}
	}
}